import type { GoodsResult } from '@/types/goods'
import { http } from '@/utils/http'
/*获取热门推荐数据(需要对接口进行封装，url动态获取) */
export const getGoodsDetailAPI = (id?: string) => {
  return http<GoodsResult>({
    method: 'GET',
    url: '/goods',
    data: {
      id,
    },
  })
}
